//add nav menu
function loadPanl(data) {
	var html="";
	var children = data.body.sys.trees.nodes;
    for(var i=0;i<children.length;i++){
   	    html+="<div class='menu'>"+children[i].text+"</div><table class='sub-menu'>";	
   	    for(var j=0;j<children[i].nodes.length;j++){
  	 	    html+="<tr onClick=selectModule('"+children[i].nodes[j].url+"',this)>"+
  	 	    "<td class='menus-l'><span></span></td>"+
			"<td class='menus-m'><img src='image/Product.png' class='nav-img'></td>"+
			"<td>"+children[i].nodes[j].text+"</td>"+
		    "</tr>";
    	}
   	    html+="</table>";
    }
    $("#navmenu").empty().append(html);
}

// select Module
function selectModule(url,str){	
	addSelectSign(str);
    zb.submit(url,'init' , 'init', '' , '' , zb.global.menu.header.session, 'route','module');  
}

//select menu load
function addSelectSign(str){
	$("#leftNav .sign").remove();
	$(str).find("td:eq(0)").append("<span class='sign'></span>");
	$("#leftNav").panel('close');
}